<template>
  <div class="result-page">
    <div class="result-container">
      <div class="container-foot">
        <div class="title">北京大学   临床医学</div>
        <div class="desc">“听说学医的，都不用睡觉，全凭一口仙气吊着。”</div>
        <div class="avatar-icon"></div>
      </div>
    </div>
    <div class="box box-pack-center box-align-center">
      <div  class="retry-btn scale-on-active" @click="retry"/>
      <div  class="share-btn scale-on-active" @click="share"/>
    </div>
    <!-- <photo-preview :src="(result[$route.query.id] || {}).src" ref="preview" hasQRCode class="photo-preview" :style="{width: width + 'px', height: height + 'px'}"></photo-preview> -->
  </div>
</template>

<script>
export default {
  name: 'resultPage',
  data: () => ({

  }),
  created () {

  },
  methods: {
    share () {

    },
    retry () {
      this.$router.replace({ name: 'home' })
    }
  },
  computed: {

  }
}
</script>

<style lang="scss">
  .result-page {
    position: relative;
    top:-10%;
    overflow: hidden;
    min-height:120%;
    width: 100%;
    background: {
      image: url(~@/assets/image/loadingBg.png);
      size: cover;
      position: center;
    }
    .result-container{
      position: relative;
      top:152px;
      width: 702px;
      height: 968px;
      background-color: #fff;
      margin:0 auto;
      .container-foot{
        position: absolute;
        bottom:0px;
        left:0px;
        width: 702px;
        height: 192px;
        background: {
          image: url(~@/assets/image/footer-bg.png);
          size: cover;
          position: center;
        }
        margin: 0 auto;
        color:#fff;
        .title{
          font-size: 40px;
          margin-top: 26px;
          margin-left: 52px;
        }
        .desc{
          width: 340px;
          font-size: 32px;
          margin-left: 68px;
          margin-top: 15px;
        }
        .avatar-icon{
          position: absolute;
          bottom:25px;
          right:40px;
          width: 176px;
          height: 474px;
          background: {
            image: url(~@/assets/image/posture/man.png);
            size: cover;
            position: center;
          }
        }
      }
    }
    .retry-btn {
      position: relative;
      margin:190px 26px 0 0;
      width: 316px;
      height: 75px;
      background: {
        image: url(~@/assets/image/retry.png);
        size: cover;
        position: center;
      }
      &:after{
        content: '想偷看TA的大学吗？';
        position: absolute;
        bottom:-50px;
        right:40px;
        color:#968c9b;
        font-size: 24px;
      }
    }
    .share-btn {
      margin-top:  180px;
      width:317px;
      height: 75px;
      background: {
        image: url(~@/assets/image/share.png);
        size: cover;
        position: center;
      }
    }
  }
</style>
